<?php
    class GuestView {
        public static function RegisterSuccess($customer){
            
        
?>
<!DOCTYPE html>
<html>
    <head>
        <title>MEdia</title>
        <link rel="stylesheet" type="text/css" href="../../pageLayout.css" />
        <style type="text/css">
            .minbody     {height:1040px;}
            .fcontainer{
                height:900px;
                width:100%-100px;
                background-color:#ffffff;
                padding:50px;
                margin-top:-50px;
            }
            .registerheader{
                font-size:20px;
                color:#0099ff;
            }
            .reglabel{
                font-size:30px;
                font-family:'Intro';
                color:#0099ff;
            }
            .formtable{
                margin-left:20px;
            }
            .formtable td{
                width:300px;
                overflow:hidden;
            }
        </style>
        <script type="text/javascript" src="../../jquery-latest.pack.js"></script>
        <script type="text/javascript" src="../../javascript.js"></script>
    </head>
    <body>
        <?php
        // put your code here
        ?> 
        <div class="mainheader">
            <div class="minheader">
                <div class="outsideheader">
                    <div class="navbar">
                        <ul>
                            <li><a href='../../index.html'><img src="images/logo.png"/></a></li>
                            <li><a href='../../categories.html'>books</a></li>
                            <li><a href='../../categories.html'>music</a></li>
                            <li><a href='../../categories.html'>movies</a></li>
                            <li><a href=''>about</a></li>
                            <li><a href=''>contact</a></li>
                            <li><form><input id="search" type="text" value="Search" onfocus="clearText(this)" onBlur="checkIfEmpty(this)"/></form></li>
                        </ul>
                    </div>
                    <div id="accountbar">
                        <div class="accountbutton">
                            <span>0</span>
                            <div id="cartitemphrasecontainer">
                                <a id="cartitemsphrase">cart items</a>
                            </div><br><br>
                            <a>check out</a>
                        </div>

                        <div onmouseover="unhideLogin()" onmouseout="hideLogin()" class="accountbutton" id="logreg">
                            <a id="logregphrase">login/<br>register</a>
                        </div>

                        <div id="logregarea">
                            <div id="login" onmouseover="unhideLogin()" onmouseout="hideLogin()">
                                <form method="POST" action="../../LoginAction.php">
                                    <a>Username</a><br><input type="text"/><br>
                                    <a>Password</a><br><input type="password"/><br>
                                    <input type="checkbox"/>
                                    <a>Keep me logged in</a>
                                    
                                    <input type="submit">
                                </form>
                            </div>
                            <div id="registerbutton" onmouseover="unhideLogin()" onmouseout="hideLogin()"><a href="../../register.html">Register</a></div>
                        </div>

                    </div>
                </div>
            </div>
        </div>

        <div class="mainbody">
            <div class="minbody">
                <div class="fcontainer">
<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
            echo "
                    <a class='reglabel'>Registration form</a>
                    <a class='registerheader'>Personal information</a>
                    <table class='formtable'>
                        <tr><td><a>Full Name</a></td><td>".$customer->Name->ToString()."</td></tr>
                        <tr><td><a>Username</a></td><td>".$customer->Username."</td></tr>
                        <tr><td><a>E-mail</a></td><td>".$customer->Email."</td></tr>
                        <tr><td><a>Billing Address</a></td><td>".$customer->BillingAddress->ToString()."</td></tr>
                        <tr><td><a>Delivery Address</a></td><td>".$customer->DeliveryAddress->ToString()."</td></tr>
                    </table><br>
                  ";
        }
    }
?>
                </div>
            </div>
        </div>

        <div class="mainfooter"> 
            <div class="minfooter">
            </div>
        </div>
    </body>
</html>

